package com.dy.design_pattern_study.adaptor_pattern.dome2.impl;

import com.dy.design_pattern_study.adaptor_pattern.dome2.Player;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-07
 * @Content 后卫
 */
public class Guards extends Player {
    public Guards(String name) {
        super(name);
    }

    @Override
    public void attack() {
        System.out.println("后卫：" + name + "进攻");

    }
    @Override
    public void defense() {
        System.out.println("后卫：" + name + "防守");
    }
}
